<?php


namespace app\server\model;

use app\index\model\Base;//default 不变，不要改

class ServerList extends Base
{
    protected  $pk = 'sl_id';
    public function servers()
    {
        return $this->belongsTo('Servers','s_id','s_id');
    }
    public function organization()
    {
        return $this->belongsTo('Organization','o_id','o_id');
    }
    public function serverOrder()
    {
        return $this->hasMany('ServerOrder','order_id','sl_id');
    }

}